﻿@{
    Layout = null;
}
@using MvcMall.AdminPortal.Controllers.System.ViewModels;
@model MessageModel
<!DOCTYPE html>
<html>
<head>
    <title>信息提示</title>
    <link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui.min.js")" type="text/javascript"></script>
    <script type="text/javascript">

        $(function () {
            function jump(count) {
                window.setTimeout(function () {
                    count--;
                    if (count > 0) {
                        $('#num').attr('innerHTML', count);
                        jump(count);
                    } else {
                      @if (!string.IsNullOrEmpty(Model.NextUrl))
                      {
                        @:location.href = "@Model.NextUrl";
                      }
                      else
                      {
                        @:history.go(-2);
                      }
                    }
                }, 1000);
            };
        
            jump(3);
        });
    </script>
</head>
<body>
    <div id="tabs">
        <ul>
            <li><a href="#message">提示信息</a></li></ul>
        <div id="message" style="padding: 20px;">
            @Model.Content
            <span style="color: Red;" id="timer"><span id="num">3</span>秒后跳转</span>
        </div>
    </div>
</body>
</html>
